import request from '@/utils/request'

// 查询运动列表
export function listRing_sport_record(query) {
  return request({
    url: '/ring/ring_sport_record/list',
    method: 'get',
    params: query
  })
}

// 查询运动详细
export function getRing_sport_record(id) {
  return request({
    url: '/ring/ring_sport_record/' + id,
    method: 'get'
  })
}

// 新增运动
export function addRing_sport_record(data) {
  return request({
    url: '/ring/ring_sport_record',
    method: 'post',
    data: data
  })
}

// 修改运动
export function updateRing_sport_record(data) {
  return request({
    url: '/ring/ring_sport_record',
    method: 'put',
    data: data
  })
}

// 删除运动
export function delRing_sport_record(id) {
  return request({
    url: '/ring/ring_sport_record/' + id,
    method: 'delete'
  })
}
